#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

#ifndef __PAM_PG_OPTIONS_H_
#define __PAM_PG_OPTIONS_H_

#define PAM_PG_HOST                     "localhost"
#define PAM_PG_DB                       "pampg"
#define PAM_PG_USER                     "limited_user"
#define PAM_PG_PASSWD                   "default_passwd"
#define PAM_PG_FILECONF                 "/etc/pam_pg.conf"
#define PAM_PG_PORT                     5432
#define PAM_PG_DEBUG                    0

typedef struct modopt_s {

   char *fileconf;
   char *host;
   char *db;
   char *user;
   char *passwd;
   int port;
   int debug;

} * modopt_t;

modopt_t mod_options(int , const char **);

#endif
